<template>
    <div class="index">
		<Header></Header>
        <!-- 消息 -->
        <Newslist :list="list"></Newslist>
        <el-button>默认按钮</el-button>
    </div>
</template>

<script>
import Header from '../components/Common/Header.vue';
import Newslist from '../components/Newslist.vue';
export default{
    components: {
        'Header': Header,
        'Newslist': Newslist
    },
    data () {
        return {
            list:2
        }
    },
    mounted() {
        let _this = this
        _this.getAjax();
        
    },
    methods:{
        getAjax() {
            let _this = this
            _this.$axios({
                method: 'post',
                url: 'https://i-test.getucloud.com/manage/brand/listByPage',
                // headers: {
                //     Platform:2,
                // },
                data: {
                    firstName: 'Fred',
                    lastName: 'Flintstone'
                }
            }).then(function (res) {
                _this.$message('这是一条消息提示');
                // _this.list = res.data.data
            })
        }
    }
  }
</script>
<style scoped>
    
</style>
